package com.authstr.auth.jwt;

import org.apache.shiro.authc.AuthenticationToken;

public class ShiroJwtToken implements AuthenticationToken {
    private static final long serialVersionUID = 1L;

    // 密钥
    private String token;

    public ShiroJwtToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }

}
